import http from '../axios'

export default {
  getList(paramObj) {
    return http('get', '/api/product/getList', paramObj);
  },
  add(productForm) {
    return http('post', '/api/product/add', productForm);
  },
  update(productForm) {
    return http('post', '/api/product/update', productForm);
  },
  delete(id) {
    return http('post', '/api/product/delete', { id: id });
  },
  getDetail(id) {
    return http('get', '/api/product/getDetail', { id: id });
  },
  setDownline(id, downline) {
    return http('post', '/api/product/setDownline', { id: id, downline: downline });
  },
  getAllNormal() {
    return http('get', '/api/product/getAllNormal');
  }
}
